package cn.dapeng.designPatterns.prototype;

import lombok.Data;

import java.io.Serializable;

@Data
public class Address implements Cloneable, Serializable {

    private String province;

    private String city;

    @Override
    public Address clone() {
        try {
            return (Address) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }

}
